package com.ocean.admin.model.dto.dicdata;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 字典数据保存DTO
 *
 * @author zhang
 * @since 2022/8/20 21:42
 **/
@Data
public class SysDictDataSaveDTO {

    /**
     * 字典标签
     */
    @NotBlank(message = "请输入字典标签")
    @Schema(description = "字典标签", required = true)
    private String dictLabel;

    /**
     * 字典键值
     */
    @NotNull(message = "请输入字典键值")
    @Schema(description = "字典键值", required = true)
    private Integer dictValue;

    /**
     * 字典类型
     */
    @NotBlank(message = "请输入字典类型")
    @Schema(description = "字典类型", required = true)
    private String dictType;

    /**
     * 表格回显样式
     */
    @Schema(description = "回显样式")
    private String listClass;

    /**
     * 样式属性（其他样式扩展）
     */
    @Schema(description = "样式属性（其他样式扩展）")
    private String cssClass;

    /**
     * 字典排序
     */
    @Schema(description = "字典排序")
    private Integer dictSort;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;
}
